import { createApp } from 'vue';
import App from './App.vue';
import router from './router/index';
import './utils/rem';
import 'amfe-flexible/index.js';
// import axios from './http/index';
import ElementPlus from 'element-plus';
import store from './store/index';
import 'element-plus/dist/index.css';
import * as ECharts from 'echarts';
import zhCn from 'element-plus/es/locale/lang/zh-cn';
import * as ElementPlusIconsVue from '@element-plus/icons-vue';
// import moment  from 'moment';
// import './flexble.js';
import { QuillEditor } from '@vueup/vue-quill';
import '@vueup/vue-quill/dist/vue-quill.snow.css';

const app = createApp(App);
app.use(ElementPlus, {
  locale: zhCn
});
for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
  app.component(key, component);
}
app.use(store);
app.use(router);
app.use(ElementPlus);
app.config.globalProperties.$ECharts = ECharts;
app.component('QuillEditor', QuillEditor);
app.mount('#app');
